<template>
  <div>
    <index-chart></index-chart>
  </div>
</template>

<script>
import IndexChart from './IndexChart'

export default {
  name: 'Analysis',
  components: {
    IndexChart,
  },
  data() {
    return {
      indexStyle: '',
    }
  },
  created() {
    // this.getLoginPermission()
  },
  methods: {
    getLoginPermission() {
      let list = this.$store.state.permission.addRouters[0].children
      list.some((item) => {
          if (item.path == '/entry') {
            this.indexStyle = 1
            return true
          } else if (item.path == '/contractManage') {
            this.indexStyle = 2
            return true
          } else {
            this.indexStyle = 2
          }
      })
    },
  },
}
</script>
<style lang="less" scoped>
img {
  width: 100%;
  height: 600px;
}
/deep/ .ant-card{
  margin-top: 8px;
  box-shadow: 0px 0px 3px 3px #dedede!important;
}
</style>